package org.itboys.kitchen.entity.mysql.order;

import org.itboys.admin.dto.lasted.SundayUploadDto;
import org.itboys.mongodb.entity.BaseMySqlEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * 作者：jiangxiong
 * 日期：2016年11月25日
 * 联系方式 ：empty90911@126.com
 * 描述：农厨_订单_商品_实体
 */
public class KitchenOrderProduct extends BaseMySqlEntity{
        private Long orderId;//订单id
        private BigDecimal price;//零售价或销售价
       // private BigDecimal retailPrice;//产品零售价格
        private BigDecimal costPrice;//产品成本价格。
        private Long productId;//产品Id
        private String name;//产品名称
        private String number;//产品编号
        private String image;//产品图片
        private String standard;//规格
        private Integer num;//数量
        private Integer type;//1,商城，2，积分，3采购
        //2017年7月1日，新增。核销金额。门店/大客户专用。即当前的销售价
    //    private BigDecimal accountAmount;//单品核销金额，初始商品价格
        private BigDecimal accountPrice;//单品核销金额，初始商品价格
        private Integer accountNum;//单品核销数量，初始商品数量
        //2017年8月27日 新增
        private String itemCode;//pos专用
        public KitchenOrderProduct() {
        }

        public KitchenOrderProduct(Long orderId, Long productId, BigDecimal price,
                                   BigDecimal costPrice, String name, String number,
                                   String image,String standard, Integer num, Integer type,String itemCode) {
                this.orderId = orderId;
                this.productId=productId;
                this.price = price;
                this.costPrice = costPrice;
                this.name = name;
                this.number=number;
                this.image=image;
                this.standard = standard;
                this.num = num;

                this.type = type;
              //  this.accountAmount=price;
            this.itemCode=itemCode;
        }

        public Long getOrderId() {
                return orderId;
        }

        public void setOrderId(Long orderId) {
                this.orderId = orderId;
        }

        public Long getProductId() {
                return productId;
        }

        public void setProductId(Long productId) {
                this.productId = productId;
        }

        public BigDecimal getPrice() {
                return price;
        }

        public void setPrice(BigDecimal price) {
                this.price = price;
        }

     /*   public BigDecimal getRetailPrice() {
                return retailPrice;
        }

        public void setRetailPrice(BigDecimal retailPrice) {
                this.retailPrice = retailPrice;
        }*/

        public BigDecimal getCostPrice() {
                return costPrice;
        }

        public void setCostPrice(BigDecimal costPrice) {
                this.costPrice = costPrice;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public String getNumber() {
                return number;
        }

        public void setNumber(String number) {
                this.number = number;
        }

        public String getStandard() {
                return standard;
        }

        public void setStandard(String standard) {
                this.standard = standard;
        }

        public Integer getNum() {
                return num;
        }

        public void setNum(Integer num) {
                this.num = num;
        }

        public Integer getType() {
                return type;
        }

        public void setType(Integer type) {
                this.type = type;
        }

        public String getImage() {
                return image;
        }

        public void setImage(String image) {
                this.image = image;
        }

      /*  public BigDecimal getAccountAmount() {
                return accountAmount;
        }

        public void setAccountAmount(BigDecimal accountAmount) {
                this.accountAmount = accountAmount;
        }*/

        public BigDecimal getAccountPrice() {
                return accountPrice;
        }

        public void setAccountPrice(BigDecimal accountPrice) {
                this.accountPrice = accountPrice;
        }

        public Integer getAccountNum() {
                return accountNum;
        }

        public void setAccountNum(Integer accountNum) {
                this.accountNum = accountNum;
        }

        public String getItemCode() {
            return itemCode;
        }

        public void setItemCode(String itemCode) {
            this.itemCode = itemCode;
        }
}
